package cn.yuxiaoyuan.system.controller;

import cn.yuxiaoyuan.system.service.LogininfoService;
import cn.yuxiaoyuan.system.vo.LoginVo;
import cn.yuxiaoyuan.utils.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/logininfo")
public class LogininfoController {
    @Autowired
    private LogininfoService logininfoService;
    @PostMapping
    public R login(@RequestBody LoginVo loginVo){
        return logininfoService.login(loginVo);
    }

}
